cmake_minimum_required(VERSION 3.5)
project(utils_base)

find_package(absl)
find_package(Boost)
file(GLOB SRC_UTILS_BASE
  "${PROJECT_SOURCE_DIR}/*.cc"
)

# absl is static, so project must be static
add_library(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME} STATIC ${SRC_UTILS_BASE})

target_include_directories(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME} 
  PUBLIC
  ${FUSION_INCLUDE_DIRS}
  )
target_link_libraries(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME} 
    glog
    yaml-cpp
    ${Boost_LIBRARIES}
    ${abseil_cpp_LIBRARIES}
    )

list(APPEND FUSION_LINKER_LIBS ${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME})
set(FUSION_LINKER_LIBS ${FUSION_LINKER_LIBS} PARENT_SCOPE)
